const std = @import("std");
const awtk = @import("awtk");
const mvvm = @import("mvvm.zig");
const models = @import("models/models.zig");
const viewmodels = @import("viewmodels/viewmodels.zig");

const c = awtk.c;

pub fn init() !void {
    std.log.debug("{s}.{s}", .{ @typeName(@This()), @src().fn_name });

    try awtk.setLanguage(.Chinese);
    try models.init(.{});
    try viewmodels.init();

    try mvvm.navigatorTo("win_main");
}

pub fn deinit() void {
    std.log.debug("{s}.{s}", .{ @typeName(@This()), @src().fn_name });
    viewmodels.deinit();
    models.deinit();
}
